package com.bangbang.feign;

import com.bangbang.feign.fallback.CreatGroupCourseOrderServiceFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "bangbang-groupcourse-service",fallback = CreatGroupCourseOrderServiceFeignFallBack.class)
public interface GroupOrderServiceFeign {

    @PostMapping("createGroupOrder/createOrder")
    void createGroupOrder(@RequestParam("trade_no")String trade_no,@RequestParam("out_trade_no")String out_trade_no);

}
